package com.bitCoinSystem.javaproject;

import com.alibaba.fastjson.JSONObject;
import com.bitCoinSystem.javaproject.Bean.Game;
import com.bitCoinSystem.javaproject.Bean.Hotvideo;
import com.bitCoinSystem.javaproject.Bean.HotvideoCommon;
import com.bitCoinSystem.javaproject.Bean.Rpcbitcoin;
import com.bitCoinSystem.javaproject.Service.GameService;
import com.bitCoinSystem.javaproject.Service.GetBestBlockHash;
import com.bitCoinSystem.javaproject.Service.GetBlockCount;
import com.bitCoinSystem.javaproject.Service.HotvidaoService;
import com.bitCoinSystem.javaproject.request.HttpUtils;
import com.sun.deploy.services.Service;
import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;

import java.io.IOException;
import java.util.List;

/**
 * @author: nilcity
 */
public class Main {
    public static void main(String[] args) throws IOException {
//        System.out.println("hello world");
//        List<Hotvideo> result = HotvidaoService.GetHotvidaoService();
//        // 遍历结果集
//        for (Hotvideo hotvideo : result) {
//            System.out.println(hotvideo.getTitle());
//        }

        //Rpcbitcoin getbestblockhash = GetBestBlockHash.getbestblockhash();
//        Rpcbitcoin getblockcount = GetBlockCount.getblockcount();
//        System.out.println(getblockcount.getResult());
        List<Game> games = GameService.GetGameService();;
        for (Game game : games) {
            System.out.println(game.getNickname());
        }

    }
}
